package com.group.Service.Impl;

import com.group.DAO.PropertyInfoDAO;
import com.group.Enity.PropertyInfo;
import com.group.Service.PropertyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class PropertyServiceImpl implements PropertyService {

    @Autowired
    private PropertyInfoDAO propertyInfoDAO;

    public List<PropertyInfo> getPropertys(Integer status){
        return propertyInfoDAO.getPropertys(status);
    }

    @Override
    public void delByID(int id) {
        propertyInfoDAO.delByID(id);
    }

    @Override
    public void updateStatus(int id) {
        propertyInfoDAO.updateStatus(id);
    }

    @Override
    public void update(PropertyInfo propertyInfo) {
        propertyInfoDAO.update(propertyInfo);
    }


}
